#include "Geometry/Object.h"

#include "Framework/StableHeaders.h"
#include "Scene/Node.h"

namespace tyro
{
	namespace Geometry
	{


		Object::Object()
		{

		}

		Object::Object( const String& name )
		{
			this->name = name;
		}

		void Object::NotifyAttached( Scene::Node* parent )
		{
			parentNode = parent;
		}

		const String& Object::GetName( void ) const
		{
			return name;
		}

		const Math::Matrix4f& Object::GetParentWorldTransform( void ) const
		{
			if (parentNode)
			{
				return parentNode->GetFullWorldTransform();
			}

			return Math::Matrix4f::IDENTITY;
		}

		void Object::NotifyActiveCamera( Camera::Camera* camera )
		{
			// TODO bounds check and LOD changes
		}


		

	}
}